package com.gopay.common.domain.user;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * 设备信息
 * @author <a href="mailto:yhwpeng@126.com">wangdong</a>
 * @date 2017-05-08 13:57:35
 */
@Entity
@Table(name = "PWD_PRISM_MACHINE")
public class PwdPrismMachine extends BaseEntity {

    private static final long serialVersionUID = -3483475999286740924L;

    @Id
    @SequenceGenerator(name="generator",allocationSize=1,initialValue=1,sequenceName="PWD_PRISM_MACHINE_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="generator")
    @Column(name = "ID")
    private Integer id;
    @Column(name = "USER_ID")
    private String userId;
    @Column(name = "CUST_ID")
    private String custId;
    @Column(name = "MAC")
    private String mac;
    @Column(name = "IS_REPEAT")
    private String isRepeat; //MAC地址
    @Column(name = "GMT_CREATE")
    private Date gmtCreate; //创建时间
    @Column(name = "VERSION")
    @Version
    private Integer version; //乐观锁版本号

    @Column(name = "GMT_NEXT")
    private Date gmtNext; //下次发送时间

    public PwdPrismMachine(){
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getIsRepeat() {
        return isRepeat;
    }

    public void setIsRepeat(String isRepeat) {
        this.isRepeat = isRepeat;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Date getGmtNext() {
        return gmtNext;
    }

    public void setGmtNext(Date gmtNext) {
        this.gmtNext = gmtNext;
    }
}
